package objects.data;

import objects.ObjectCodes;

import com.google.gson.Gson;


public class ClusterData implements ObjectCodes {
	public String hostname;
	public String local_hostname;
	public int db_id;
	public boolean isOn;
	
	public ClusterData(){}
	
	public String toString()
	{
		return new Gson().toJson(this);
	}
	
	public static ClusterData fromJSon(String json)
	{
		return new Gson().fromJson(json,ClusterData.class);
	}

}
